const {ipcRenderer} = require('electron')
console.log('to new window')
window.addEventListener('DOMContentLoaded', () => {
    let newWindowDiv = document.getElementById('newWindowDiv');
    console.log(newWindowDiv)
    ipcRenderer.on('toNewWindow', (ev, data) => {
        console.log(data)
        newWindowDiv.innerText += data
    })

    let item = localStorage.getItem('renderCommunicate');
    console.log(item)
    newWindowDiv.innerText += item
})